// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增安全-危化品运输管理数据 POST /safeChemicalsTransport/add */
export async function safeChemicalsTransportAdd(
  body: BIZAPI.SafeChemicalsTransportCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeChemicalsTransportAdd(
  body: BIZAPI.SafeChemicalsTransportCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeChemicalsTransportAdd(
  body: BIZAPI.SafeChemicalsTransportCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeChemicalsTransportAdd(
  body: BIZAPI.SafeChemicalsTransportCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeChemicalsTransport/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeChemicalsTransport/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 审核 POST /safeChemicalsTransport/check */
export async function safeChemicalsTransportCheck(
  body: BIZAPI.SafeChemicalsTransportEntity,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultObject>;

export async function safeChemicalsTransportCheck(
  body: BIZAPI.SafeChemicalsTransportEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultObject>>;

export async function safeChemicalsTransportCheck(
  body: BIZAPI.SafeChemicalsTransportEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultObject>;

export async function safeChemicalsTransportCheck(
  body: BIZAPI.SafeChemicalsTransportEntity,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultObject>(`/app/safeChemicalsTransport/check`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResultObject>(`/app/safeChemicalsTransport/check`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除安全-危化品运输管理数据 POST /safeChemicalsTransport/delete */
export async function safeChemicalsTransportDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeChemicalsTransportDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeChemicalsTransportDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeChemicalsTransportDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeChemicalsTransport/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeChemicalsTransport/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-危化品运输管理数据 POST /safeChemicalsTransport/get */
export async function safeChemicalsTransportGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeChemicalsTransportEntity>;

export async function safeChemicalsTransportGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeChemicalsTransportEntity>>;

export async function safeChemicalsTransportGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeChemicalsTransportEntity>;

export async function safeChemicalsTransportGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeChemicalsTransportEntity>(
      `/app/safeChemicalsTransport/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeChemicalsTransportEntity>(
    `/app/safeChemicalsTransport/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-危化品运输管理VO数据 POST /safeChemicalsTransport/getVo */
export async function safeChemicalsTransportGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeChemicalsTransportResp>;

export async function safeChemicalsTransportGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeChemicalsTransportResp>>;

export async function safeChemicalsTransportGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeChemicalsTransportResp>;

export async function safeChemicalsTransportGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeChemicalsTransportResp>(
      `/app/safeChemicalsTransport/getVo`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeChemicalsTransportResp>(
    `/app/safeChemicalsTransport/getVo`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-危化品运输管理分页数据 POST /safeChemicalsTransport/page */
export async function safeChemicalsTransportPage(
  body: BIZAPI.SafeChemicalsTransportQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeChemicalsTransportEntity>;

export async function safeChemicalsTransportPage(
  body: BIZAPI.SafeChemicalsTransportQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeChemicalsTransportEntity>>;

export async function safeChemicalsTransportPage(
  body: BIZAPI.SafeChemicalsTransportQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeChemicalsTransportEntity>;

export async function safeChemicalsTransportPage(
  body: BIZAPI.SafeChemicalsTransportQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeChemicalsTransportEntity>(
      `/app/safeChemicalsTransport/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeChemicalsTransportEntity>(
    `/app/safeChemicalsTransport/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 驳回 POST /safeChemicalsTransport/refuse */
export async function safeChemicalsTransportRefuse(
  body: BIZAPI.SafeChemicalsTransportEntity,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultObject>;

export async function safeChemicalsTransportRefuse(
  body: BIZAPI.SafeChemicalsTransportEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultObject>>;

export async function safeChemicalsTransportRefuse(
  body: BIZAPI.SafeChemicalsTransportEntity,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultObject>;

export async function safeChemicalsTransportRefuse(
  body: BIZAPI.SafeChemicalsTransportEntity,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultObject>(`/app/safeChemicalsTransport/refuse`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResultObject>(`/app/safeChemicalsTransport/refuse`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 提交 POST /safeChemicalsTransport/submit */
export async function safeChemicalsTransportSubmit(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultObject>;

export async function safeChemicalsTransportSubmit(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultObject>>;

export async function safeChemicalsTransportSubmit(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultObject>;

export async function safeChemicalsTransportSubmit(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultObject>(`/app/safeChemicalsTransport/submit`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResultObject>(`/app/safeChemicalsTransport/submit`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 更新安全-危化品运输管理数据 POST /safeChemicalsTransport/update */
export async function safeChemicalsTransportUpdate(
  body: BIZAPI.SafeChemicalsTransportUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeChemicalsTransportUpdate(
  body: BIZAPI.SafeChemicalsTransportUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeChemicalsTransportUpdate(
  body: BIZAPI.SafeChemicalsTransportUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeChemicalsTransportUpdate(
  body: BIZAPI.SafeChemicalsTransportUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeChemicalsTransport/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeChemicalsTransport/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-危化品运输管理VO分页数据 POST /safeChemicalsTransport/voPage */
export async function safeChemicalsTransportVoPage(
  body: BIZAPI.SafeChemicalsTransportQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeChemicalsTransportResp>;

export async function safeChemicalsTransportVoPage(
  body: BIZAPI.SafeChemicalsTransportQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeChemicalsTransportResp>>;

export async function safeChemicalsTransportVoPage(
  body: BIZAPI.SafeChemicalsTransportQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeChemicalsTransportResp>;

export async function safeChemicalsTransportVoPage(
  body: BIZAPI.SafeChemicalsTransportQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeChemicalsTransportResp>(
      `/app/safeChemicalsTransport/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeChemicalsTransportResp>(
    `/app/safeChemicalsTransport/voPage`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
